using System.Threading.Tasks;

namespace DailyPoetryX.AzureStorage.Services {
    /// <summary>
    /// 授权服务。
    /// </summary>
    public interface IAuthorizationService {
        /// <summary>
        /// 检查用户是否具有访问服务的授权。
        /// </summary>
        /// <param name="name">用户名。</param>
        Task<bool> AuthorizeAsync(string name);
    }
}